<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>持有的股票报警</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<table border="1" style="text-align: right">
		<tr>
			<td>名称</td>
			<td>代码</td>
			<td>买入时间</td>
			<td>收益</td>
			<td>操作</td>
		</tr>
		<tr th:each="stockData : ${stockMap.values()}">
			<td th:text="${stockData.name}"></td>
			<td th:text="${stockData.code}"></td>
			<td th:text="${stockData.date}"></td>
			<td th:text="${stockData.profit + '%'}"></td>
			<td style="color:red" th:if="${stockData.action=='卖出'}" th:text="${stockData.action}"></td>
			<td style="color:green" th:if="${stockData.action=='买入'}" th:text="${stockData.action}"></td>
			<td th:if="${stockData.action=='持有'}" th:text="${stockData.action}"></td>
		</tr>
	</table>
</body>
</html>